package com.example.booklist.model;

import com.example.booklist.model.BookInfo;
import lombok.Data;

import java.util.List;

/**
 * ClassName: PageResult
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2023/11/20 16:30
 * @Version 1.0
 */
@Data
public class PageResult<T> {
    private List<T> records;
    private Integer total;
    private Integer code;
    private String errorMessage;
    private PageRequest pageRequest;
    public PageResult(List<T> records, Integer total, PageRequest pageRequest) {
        this.records = records;
        this.total = total;
        this.pageRequest = pageRequest;
    }
}
